<?php
/**
 *  💡 免责声明：本软件不得用于商业用途，仅做学习交流
 *  ⚠️ 权利声明：本软件由版权人提供产品技术支持
 *  📅 项目编号：NX2025-0135
 */
namespace App\Admin\Controllers;

use Dcat\Admin\Admin;
use Illuminate\Support\Facades\Cache;

class ImController
{
    public function index()
    {
        $user = Admin::user()->toArray();

        $key = $user['password'];
        Cache::put($key, $user, now()->addHour());
        return redirect('./im/#/?key=' . base64_encode($key));
    }
}
